package com.louis.di;


import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author XRY
 * @date 2023年06月29日9:12
 */

public class TestResourceBean {
    @Test
    public void testResourceBean(){
        ApplicationContext context = new ClassPathXmlApplicationContext("bean-di.xml");
        ResourceBean resource = context.getBean("resourceBean", ResourceBean.class);
        resource.parse();
        /*
        * louis.txt
          class path resource [louis.txt]
        * */
    }
}
